
<style type='text/css'>
	.addAccount_form{
		border: 1px solid #D9D9D9;
		padding: 15px;
		margin-left: 15px;
		margin-right: 15px;
		margin-top: 5px;
		margin-bottom: 5px;
	}
	
	#addAccount_form table tr td{
		vertical-align: middle;
		padding-left: 10px;
		padding: 8px;
	}
	.input{  
	        width:326px;
	        border: 1px 
	        solid #46A3FF;
	        height: ;  
	        maxlength: 
	      
	        }
</style>

<script type="text/javascript">

function closeJbox() {
	$.jBox.close(true);
}

function submit_account(){
	if(!checkRequiredInputs()){
		return false;
	}
    $.ajax({

                    type:'POST',
                    url:'/lottery/accounts/refuse_reason',
                    data:{id:{{recordid}},desc:$("#accNum").val()},
                    success:function(data,status){
                    	$.jBox.tip('操作成功', 'success');
                    	//$('#{{grid}}').datagrid('reload');
                    	$('#acc_2222').datagrid('reload');
                    	$.jBox.close(true);
                    },
                    error:function (req, status, error){
                    	$.jBox.tip('操作失败', 'error');
                    	$('#acc_2222').datagrid('reload');
                    	$.jBox.close(true);
                    }
                });
    
    
    

	return true;
	}
	
function checkRequiredInputs(){
	var id=$("#id").val();
	if( !($("#accNum").val()) ){
		$("#requiredInputsMSG").css({"display":"inline"});
		return false;
	}
	return true;
}
</script>


<form id='addAccount_form' method="post">
<fieldset class='addAccount_form'>
	<legend style='padding: 5px 10px 0'>拒绝理由</legend>
		<table align="center">
			<tr>
				<div id="requiredInputsMSG" style="display:none"><font color="#ff0000">请确保所有必填信息已经填入</font></div>
			</tr>
			<tr>
				<td class="required formLabel">请输入拒绝理由：</td>

				<td class="formContent">
				   
					<input class="input" type="textarea"  id="accNum" name="account_num" required="true" value="">

				</td>
		    </tr>
		    <tr>
				<td>
				   <input type="button" value="确定" onclick="submit_account();" style="border: 1px solid #3580A9;text-shadow: 0px -1px 0px #2C6AA3;font-weight: bold;font-size:12px;padding: 5px 10px;border-radius: 3px 3px 3px 3px;box-shadow: 0px 1px 5px #B2B2B2;">
                   </td><td align="center">
                   <input type="reset" value="重置" style="border: 1px solid #3580A9;text-shadow: 0px -1px 0px #2C6AA3;font-weight: bold;font-size:12px;padding: 5px 10px;border-radius: 3px 3px 3px 3px;box-shadow: 0px 1px 5px #B2B2B2;"><input type="hidden" id="recordid" value="{{recordid}}">
		  		</td>
			</tr>
		</table>
</fieldset>
</form>

